<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		
		<act_window name="Partner Ledger"
			res_model="account.partner.ledger"
			src_model="res.partner"
			view_mode="form"
			target="new"
			multi="True"
			groups="applico_v8.hidden_applico"
			key2="client_print_multi"
			id="account.action_account_partner_ledger"/>
		
		<act_window name="Partner Mass Mailing"
            res_model="mail.compose.message"
            src_model="res.partner"
            view_mode="form"
            multi="True"
            groups="applico_v8.hidden_applico"
            target="new"
            key2="client_action_multi"
            id="base.action_partner_mass_mail"/>
		
		<record model="ir.actions.act_window" id="portal.partner_wizard_action">
			<field name="groups_id" eval="[(6,0,[ref('applico_v8.hidden_applico')])]"/>
		</record>
		
		<!--record model="ir.ui.view" id="partner_view_button_applico">
			<field name="name">partner.view.button.applico</field>
			<field name="model">res.partner</field>
			<field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
			<field name="priority" eval="22"/>
			<field name="inherit_id" ref="account.partner_view_button_journal_item_count"/>
			<field name="arch" type="xml">
				<button name="%(account.action_account_moves_all_tree)d" position="replace"/>
					<button type="action" class="oe_stat_button" name="%(account.action_account_moves_all_tree)d" invisible="1" icon="fa-list">
						<field string="Journal Items" name="journal_item_count" widget="statinfo"/>
					</button>
				</button>
			</field>
		</record-->

		<!-- record model="ir.ui.view" id="account.partner_view_button_journal_item_count">
            <field name="name">partner.view.button.journal_item_count</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="account.partner_view_button_journal_item_count"/>
            <field name="priority" eval="22"/>
            <field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
            <field name="arch" type="xml">
                <xpath expr="//button[@name='%(account.action_account_moves_all_tree)d']" position="replace"/>
            </field>
        </record-->

		<record model="ir.ui.view" id="view_partner_property_form_applico">
			<field name="name">view.partner.property.form.applico</field>
			<field name="inherit_id" ref="account.view_partner_property_form"/>
			<field name="model">res.partner</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<field name="credit" position="after">
					<field name="depo_credit"/>
				</field>
				<field name="debit" position="after">
					<field name="depo_debit"/>
				</field>
				<field name="bank_ids" position="replace">
					<field name="bank_ids" invisible="1"/>
				</field>
			</field>
		</record>

		<delete model="ir.values" search="[('name','=','act_account_invoice_partner_relation')]"/>
	</data>
</openerp>
